// import './assets/main.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import { useIntersectionObserver } from '@vueuse/core'
import { install } from 'element-plus'
import { lazyPlugin } from './directives'
import { componentPlugin } from './components'
import ElementPlus from "element-plus";
import piniaPluginPersistedState from 'pinia-plugin-persistedstate'

const app = createApp(App)
const pinia = createPinia();

app.use(pinia);
app.use(router);
app.use(lazyPlugin);
app.use(componentPlugin);
app.use(ElementPlus);
app.mount('#app');

pinia.use(piniaPluginPersistedState);
